/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package day04;

import java.util.StringTokenizer;

/**
 *
 * @author Administrator
 */
public class StringHandler {
 
    /*
     * Java|Programing|is|very|difficult
     */
    
public void parseString(String s){
  StringTokenizer sk = new StringTokenizer(s,"|-");
  while(sk.hasMoreElements()){
      String a = sk.nextToken();
      System.out.println(a);
  }
  
  
    
    


}    
    
    
}
